package group5.gwt.client;

import com.google.gwt.user.client.ui.HTMLTable;



public class KaroCell extends HTMLTable.Cell{

    public static String X_SYMBOL = "<div class=\"karo-cell\">X</div>";
    public static String O_SYMBOL = "<div class=\"karo-cell\">O</div>";
    public static String EMPTY_SYMBOL = "<div class=\"karo-cell\"></div>";
    private String html;
    
    protected KaroCell(HTMLTable htmlTable, int rowIndex, int cellIndex) {
	htmlTable.super(rowIndex, cellIndex);
    }
    public void setToXSymbol() {
	html = X_SYMBOL;
    }
    public void setToOSymbol() {
	html = O_SYMBOL;
    }
    public void setToEmptySymbol() {
	html = EMPTY_SYMBOL;
    }
    public String toHtmlString() {
	return html;
    }
}
